package com.yaosheng.thread.thread;

import java.io.IOException;

/**
 * Created by yaosheng on 2021/7/5.
 * 强引用:即普通引用，有引用指向的对象gc一定不会回收，只有没有对象指向了才会回收
 */
public class TestNormalreference {

    public static void main(String[] args) throws IOException {

        TestPhantomReference.M m = new TestPhantomReference.M ();
        m = null;
        System.gc ();   //DisableExplicitGc

        System.in.read ();   //使当前线程进入阻塞状态
    }
}
